package service.strategy;

import model.Paper;
import java.util.*;

public class RandomSelectionStrategy implements PaperSelectionStrategy {
    @Override
    public List<Paper> selectPapers(List<Paper> availablePapers, int quantity) {
        List<Paper> copy = new ArrayList<>(availablePapers);
        Collections.shuffle(copy);
        return new ArrayList<>(copy.subList(0, quantity));
    }
}